﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/login',
      },
    ],
  },
  {
    path: '/welcome',
    name: '首页',
    icon: 'smile',
    component: './CompanyInfo',
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    //component: './Admin',
    routes: [
      {
        path: '/admin/airline-info',
        name: '航班管理',
        //icon: 'smile',
        component: './AirlineInfo',
      },
      {
        path: '/admin/passengar',
        name: '乘客管理',
        icon: 'smile',
        component: './ClientInfo',
      },
      {
        path: '/admin/ininerary',
        name: '乘机信息',
        icon: 'smile',
        component: './ItineraryInfo',
      },
      // {
      //   path:'/admin/book',
      //   name:'订单查询',
      //   icon:'smile',
      //   component:'./Welcome'
      // },
      {
        path: '/admin/aircraft-info',
        name: '机组信息',
        icon: 'smile',
        component: './PassengerInfo',
      }
    ],
  },
  {
    name: '管理权限',
    icon: 'table',
    path: '/list',
    component: './ListTableList',
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
